import store from '@/store'
export default {

    //获取登录OKEN
    getToken(){
        return store.getters['user/GET_TOKEN'];
    },

    //获取用户登录信息
    getLoginInfo(){
        return store.getters['user/GET_LOGIN_INFO'];
    },

    //校验用户是否拥有菜单权限
    checkMenuPermissions(permission){
        return Reflect.has(this.getLoginInfo().menuPermissions,permission);
    }
}